package com.thm.tfast.modules.sys.model.dto.user;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

/**
 * @author THM
 * @date 2022/10/28
 * @desc 用户新增dto
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class UserInsertDto {
    @ApiModelProperty(value = "用户名", required = true)
    @NotEmpty(message = "用户名不能为空")
    @Size(max = 36, message = "用户名不能超过36位")
    private String userName;

    @ApiModelProperty(value = "密码 sha256加密处理", required = true)
    @NotEmpty(message = "密码不能为空")
    private String password;

    @ApiModelProperty(value = "身份证号码")
    @Size(max = 18, message = "身份证号码不能超过18位")
    private String idCard;

    @ApiModelProperty(value = "头像 文件ID")
    private Long icon;

    @ApiModelProperty(value = "昵称")
    @Size(max = 36, message = "昵称不能超过36位")
    private String nickName;

    @ApiModelProperty(value = "邮箱")
    @Size(max = 36, message = "邮箱不能超过36位")
    private String email;

    @ApiModelProperty(value = "电话号码")
    @Size(max = 11, message = "电话号码不能超过11位")
    private String phone;

    @ApiModelProperty(value = "组织机构ID")
    private Long orgId;

    @ApiModelProperty(value = "备注")
    @Size(max = 200, message = "备注不能超过200位")
    private String remark;

}
